package com.atguigu.spzx.manage.mapper;

import com.atguigu.spzx.model.entity.system.Community;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommunityMapper {
    List<Community> findAll();


    void saveCommunity(Community community);


    void updateCommunity(Community community);

    int selectCountById(Long id);

    void deleteById(Long id);

    List<Community> selectCommunityByParentId(Long id);

    int selectCountByParentId(Long id);

    List<Community> selectCommunityNameByParentId(Long id);
}
